package com.xintonghua.hongyi.ui.home;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RatingBar;
import android.widget.TextView;

import com.xintonghua.base.ui.BaseActivity;
import com.xintonghua.hongyi.R;
import com.youth.banner.Banner;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 店铺详情
 */
public class StoreDetailActivity extends BaseActivity {
    @BindView(R.id.banner)
    Banner banner;
    @BindView(R.id.tv_store_name)
    TextView tvStoreName;
    @BindView(R.id.ratbar_score)
    RatingBar ratbarScore;
    @BindView(R.id.tv_score)
    TextView tvScore;
    @BindView(R.id.tv_store_address)
    TextView tvStoreAddress;
    @BindView(R.id.iv_store_call)
    ImageView ivStoreCall;
    @BindView(R.id.tv_store_time)
    TextView tvStoreTime;
    @BindView(R.id.tv_store_msg)
    TextView tvStoreMsg;
    @BindView(R.id.btn_subscribe)
    Button btnSubscribe;
    @BindView(R.id.tv_costomer)
    TextView tvCostomer;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_store_detail);
        ButterKnife.bind(this);
        initUI();
    }

    @Override
    public void initUI() {
        super.initUI();
        onSimpleActionBar();
        setSimpleActionBar("店铺详情", R.drawable.home_message, new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });
    }

    @OnClick({R.id.iv_store_call, R.id.btn_subscribe, R.id.tv_costomer})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            //电话
            case R.id.iv_store_call:
                callDial("121212");
                break;
            //立即预约
            case R.id.btn_subscribe:
                openActivity(SubscribeActivity.class);
                break;
            //联系客服
            case R.id.tv_costomer:
                break;
        }
    }
}
